<aside class="widget">
    <h3 class="box box-border">Tin tức cập nhật</h3>
    <div class="box-border event-small">
    <?php foreach ($model as $data): ?>
        <div class="event-item">
            <div class="event-image">
                <a href="<?php echo Yii::app()->createurl('/Home/news/view', array('slug'=>$data->slug)); ?>" title="<?php echo $data->title; ?>">
                    <img src="<?php echo IMAGES_URL . 'news/' , date('Ymd', strtotime($data->posteddate)), '/', $data->image; ?>" alt="<?php echo $data->title; ?>" />
                </a>
            </div>
            <div class="event-content">
                <?php echo CHtml::link($data->title, array('/Home/news/view', 'slug'=>$data->slug), array('title'=>$data->title)); ?>
            </div>
        </div>
    <?php endforeach; ?>
    </div>
</aside>